﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CollegeWebsite.Models.Student>" %>
<%@ Import Namespace="CollegeWebsite.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Apply Complete</h2>
    <div class="ui-state-default">
        You has been apply addmission form compleated with this infomation</div>
        Your Admission Code is: <br/>
        <h4>
        <%= ViewData["AdmissionCode"] %></h4>
        <br/>
        Please remember this code to check status for your admission!
    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">StudentID</div>
        <div class="display-field"><%= Html.Encode(Model.StudentID) %></div>
        
        <div class="display-label">StudentName</div>
        <div class="display-field"><%= Html.Encode(Model.StudentName) %></div>
        
        <div class="display-label">FatherName</div>
        <div class="display-field"><%= Html.Encode(Model.FatherName) %></div>
        
        <div class="display-label">MotherName</div>
        <div class="display-field"><%= Html.Encode(Model.MotherName) %></div>
        
        <div class="display-label">PIN</div>
        <div class="display-field"><%= Html.Encode(Model.PIN) %></div>
        
        <div class="display-label">DateOfBirth</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:g}", Model.DateOfBirth)) %></div>
        
        <div class="display-label">Gender</div>
        <div class="display-field"><%= Html.Encode(Model.Gender) %></div>
        
        <div class="display-label">ResidentialAddress</div>
        <div class="display-field"><%= Html.Encode(Model.ResidentialAddress) %></div>
        
        <div class="display-label">PermanentAddress</div>
        <div class="display-field"><%= Html.Encode(Model.PermanentAddress) %></div>
        
        <div class="display-label">Applied to</div>
        <div>
        <% var applyCourse = (Course) ViewData["Course"]; %>
        <span class="display-label">Department: </span><span class="display-field"><%= Html.Encode(applyCourse.Department.Faculty.FacultyName)%></span>
        <span class="display-label">Faculty: </span><span class="display-field"><%= Html.Encode(applyCourse.Department.DepartmentName)%></span>
        <span class="display-label">Course: </span><span class="display-field"><%= Html.Encode(applyCourse.CourseName)%></span>
        </div>
        <div class="display-label">SupportDetails</div>
        <div class="display-field"><%= Html.Encode(Model.SupportDetails) %></div>
        
        <div class="display-label">Status</div>
        <div class="display-field"><%= Html.Encode(Model.Status) %></div>
        
    </fieldset>
    <p>

        <%= Html.ActionLink("Edit", "Edit", new { id=Model.StudentID }) %> |
        <%= Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptIncludePlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="Sidebar1ContentPlaceHolder" runat="server">
</asp:Content>

